<div class="layui-form-item {if !$v['show']}layui-hide{/if}" style="width:98%;">
    <label class="layui-form-label">{$v.title}</label>
    <div class="layui-input-block">
        <textarea id="{$v.name}" name="form[{$v.name}]" >{$model[$v['name']]|default=''}</textarea>
    </div>
</div>

<script>
    layui.config({
        base: '__static__/layui/extend/'
    }).extend([
        'ueditor'
    ]).use(['form','ueditor'],function(){
        UE.getEditor('{$v.name}', {
            autoHeightEnabled: true,
            initialFrameHeight:500,
            serverUrl: "{:url('admin/ueditor/index')}"
        });
    });
</script>